<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
          name="viewport">
    <title>店铺位置</title>
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/mobile-select-area.css">
    <script src="../js/jquery-1.8.3.min.js"></script>
    <script src="../js/dialog.js"></script>
    <script src="../js/mobile-select-area.js"></script>
    <script src="../js/city.js"></script>
    <script src="../js/public.js"></script>
    <style>
        .footer-btns{
            background: #5f3104;
            color: #fff;
            font-size: 12px;
            text-align: center;
            line-height: 40px;
            position: fixed;
            width: 80%;
            left: 10%;
            right: 10%;
            bottom: 20px;
            border-radius: .04rem;
        }
        .bor{
            border: none;
            width: 100%;
            line-height: 40px;
            padding: 0 10px;
            box-sizing: border-box;
            border-bottom: solid 1px #ddd;
        }
    </style>
</head>
<body>
<div id="divlist">
    <div style="position: relative;padding: 10px;box-sizing: border-box" id="address" >

    </div>
</div>
<div class="footer-btns" id="save">
    添加
</div>
</body>
<script>
    $(function () {
        $.ajax({
            url:base_url+"ZITAOHUI/store/selectStoreAddress",
            data:{
                storeId:sessionStorage.getItem("s_id")
            },
            dataType:"json",
            success:function (data){
                if(data.code == 1){
                    if(data.extend.list.storeAddress == ''|| data.extend.list.storeAddress == null ){
                        $("#address").html('<div style="text-align: center;margin-top: 20px;">'+"暂无地址"+'</div>');
                    }else{
                        $("#address").html('<div>'+data.extend.list.storeAddress+'</div>');
                    }
                }else{

                }
            }
        })
        $("#save").click(function (){
            window.location.href = "dianpuweizhi.html";
        })
    });
</script>
</html>